import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';
import axios from 'axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "@/assets/iconcss/iconfont.css";
import * as echarts from "echarts" //引入echarts
Vue.prototype.$echarts = echarts //注册组件
import BaiduMap from 'vue-baidu-map' //引入百度地图

Vue.use(ElementUI);
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'okqSGmYWjh8CYASbCyCsAZ0FD7cVlDQV'
});
// axios.defaults.baseURL = "http://192.168.31.234:3000";
axios.defaults.baseURL = "http://192.168.0.8:3000";
Vue.prototype.$http = axios;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
